package com.servicesManagement.model;
// Generated Dec 13, 2014 11:53:18 AM by Hibernate Tools 3.2.1.GA


import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * ServiceLineType generated by hbm2java
 */
@Entity
@Table(name="SERVICE_LINE_TYPE"
    ,schema="SANKAR"
)
public class ServiceLineType  implements java.io.Serializable {


     private BigDecimal serviceLineTypeId;
     private BigDecimal changedByUserId;
     private Date changedDate;
     private BigDecimal createdByUserId;
     private Date createdDate;
     private String description;
     private String participationEnabled;
     private Set<ServiceLine> serviceLines = new HashSet(0);

    public ServiceLineType() {
    }

	
    public ServiceLineType(BigDecimal serviceLineTypeId) {
        this.serviceLineTypeId = serviceLineTypeId;
    }
    public ServiceLineType(BigDecimal serviceLineTypeId, BigDecimal changedByUserId, Date changedDate, BigDecimal createdByUserId, Date createdDate, String description, String participationEnabled, Set serviceLines) {
       this.serviceLineTypeId = serviceLineTypeId;
       this.changedByUserId = changedByUserId;
       this.changedDate = changedDate;
       this.createdByUserId = createdByUserId;
       this.createdDate = createdDate;
       this.description = description;
       this.participationEnabled = participationEnabled;
       this.serviceLines = serviceLines;
    }
   
     @Id 
    
    @Column(name="SERVICE_LINE_TYPE_ID", unique=true, nullable=false, scale=0)
    public BigDecimal getServiceLineTypeId() {
        return this.serviceLineTypeId;
    }
    
    public void setServiceLineTypeId(BigDecimal serviceLineTypeId) {
        this.serviceLineTypeId = serviceLineTypeId;
    }
    
    @Column(name="CHANGED_BY_USER_ID")
    public BigDecimal getChangedByUserId() {
        return this.changedByUserId;
    }
    
    public void setChangedByUserId(BigDecimal changedByUserId) {
        this.changedByUserId = changedByUserId;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="CHANGED_DATE", length=7)
    public Date getChangedDate() {
        return this.changedDate;
    }
    
    public void setChangedDate(Date changedDate) {
        this.changedDate = changedDate;
    }
    
    @Column(name="CREATED_BY_USER_ID")
    public BigDecimal getCreatedByUserId() {
        return this.createdByUserId;
    }
    
    public void setCreatedByUserId(BigDecimal createdByUserId) {
        this.createdByUserId = createdByUserId;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="CREATED_DATE", length=7)
    public Date getCreatedDate() {
        return this.createdDate;
    }
    
    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }
    
    @Column(name="DESCRIPTION")
    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    @Column(name="PARTICIPATION_ENABLED")
    public String getParticipationEnabled() {
        return this.participationEnabled;
    }
    
    public void setParticipationEnabled(String participationEnabled) {
        this.participationEnabled = participationEnabled;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="serviceLineType")
    public Set<ServiceLine> getServiceLines() {
        return this.serviceLines;
    }
    
    public void setServiceLines(Set<ServiceLine> serviceLines) {
        this.serviceLines = serviceLines;
    }




}


